<template>
    <div class="queryGraduation">
        <el-form :inline="true" :model="formInline" class="demo-form-inline">
              <el-form-item label="学年">
                 <el-input v-model="formInline.user" placeholder="请输入学年"></el-input>
              </el-form-item>
              <el-form-item label="学期">
                 <el-input v-model="formInline.user" placeholder="请输入学期"></el-input>
              </el-form-item>
              <el-form-item>
                <el-button type="primary" @click="onSubmit">查询</el-button>
              </el-form-item>
        </el-form>
        <el-table :data="tableData" borderstyle="width: 100%":default-sort = "{prop: 'date', order: 'descending'}">
          <el-table-column
            prop="date"
            label="学年"
            sortable
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            label="学期"
            sortable
            width="180">
          </el-table-column>
          <el-table-column
            prop="address"
            label="专业"
            :formatter="formatter">
          </el-table-column>
          <el-table-column
            prop="address"
            label="毕业设计内容"
            :formatter="formatter">
          </el-table-column>
          <el-table-column
            prop="address"
            label="上传时间"
            :formatter="formatter">
          </el-table-column>
    </el-table>
    </div>
</template>
<style>

</style>
<script>
  export default {
    name:'queryGraduation',
    data() {
      return {
        formInline: {
          user: '',
          region: ''
        },
        tableData: [{
          date: '2016-05-02',
          name: '第一学期',
          address: '上海市普陀区金沙路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '第一学期',
          address: '上海市普陀区金沙江路 1517 弄'
        }, {
          date: '2016-05-01',
          name: '第一学期',
          address: '上海市普陀区金沙江路 1519 弄'
        }, {
          date: '2016-05-03',
          name: '第一学期',
          address: '上海市普陀区金沙江路 1516 弄'
        }]
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>
